﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MazeMaker
{
    public partial class MazeMaker : Form
    {
        private Maze _Maze = new Maze();        

        public MazeMaker()
        {                           
            InitializeComponent();
        }

        private void New_Click(object sender, EventArgs e)
        {
            _Maze.CreateWalls();
            drawableMaze1.Refresh();
            _Maze.Draw(drawableMaze1.GetPanelGraphics());                        
        }

        private void Generate_Click(object sender, EventArgs e)
        {
            _Maze.Randomize();
            drawableMaze1.Refresh();
            _Maze.Draw(drawableMaze1.GetPanelGraphics());               
        }

        private void Solve_Click(object sender, EventArgs e)
        {

        }

 
    }
}
